import request from '@/utils/request'

// 查询线路工时配置列表
export function listRouteManHour(query) {
  return request({
    url: '/dispatch/routeManHour/list',
    method: 'get',
    params: query
  })
}

// 查询线路工时配置详细
export function getRouteManHour(routeId) {
  return request({
    url: '/dispatch/routeManHour/' + routeId,
    method: 'get'
  })
}

// 新增线路工时配置
export function addRouteManHour(data) {
  return request({
    url: '/dispatch/routeManHour',
    method: 'post',
    data: data
  })
}

// 修改线路工时配置
export function updateRouteManHour(data) {
  return request({
    url: '/dispatch/routeManHour',
    method: 'put',
    data: data
  })
}

// 删除线路工时配置
export function delRouteManHour(routeId) {
  return request({
    url: '/dispatch/routeManHour/' + routeId,
    method: 'delete'
  })
}
